﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;

namespace FIM
{
    public class BiAxialMouse : BiAxialInput
    {
        public override Microsoft.Xna.Framework.Vector2 Value
        {
            get
            {
                Vector2 result = new Vector2();
                result.X = manager.CurrentMouse.X - manager.MouseOriginX;
                result.Y = manager.CurrentMouse.Y - manager.MouseOriginY;
                result.Y *= mulY;
                return result * mul;
            }
        }
        int mulY;

        public BiAxialMouse(CManager manager, float multiplier, bool reverseY)
            : base(manager, multiplier)
        {
            mulY = reverseY ? 1 : -1;
        }
    }
}
